#ifndef PITD_H
#define PITD_H

#include <pit/pit.h>

typedef void (*isr)(void);

extern volatile unsigned int timestamp;

void PITD_Configure(isr callback, unsigned int period, int prioritary);

#define PITD_Start() \
{ \
    PIT_EnableIT(); \
    PIT_Enable(); \
}

#define PITD_Stop() \
{ \
    PIT_Disable(); \
    PIT_DisableIT(); \
}

#endif
